package cj.web.marry.constants;

public enum WXPayAttachEnum {
	SC("商城","SC"),
	XQ("相亲","XQ"),
	;
    // 成员变量
    private String name;
    private String value;

    // 构造方法
    private WXPayAttachEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    // 普通方法
    public static String getName(String value) {
        for (WXPayAttachEnum c : WXPayAttachEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}